$OpenBSD: patch-part_CMakeLists_txt,v 1.2 2014/07/09 20:03:24 zhuk Exp $
Fix linking.
--- part/CMakeLists.txt.orig	Fri May  9 12:43:33 2014
+++ part/CMakeLists.txt	Wed Jun  4 04:02:31 2014
@@ -232,7 +232,7 @@ kde4_add_library (katepartinterfaces ${LIBRARY_TYPE} $
 
 target_link_libraries (
   katepartinterfaces ${KDE4_KDECORE_LIBS} ${KDE4_KPARTS_LIBS}
-  ${KDE4_KCMUTILS_LIBS} ${KDE4_KTEXTEDITOR_LIBS} ${QT_QTSCRIPT_LIBRARY} ${KDE_4_4_LIBS_NEEDED} ${KDE4_KNEWSTUFF3_LIBS}
+  ${KDE4_KCMUTILS_LIBS} ${KDE4_KTEXTEDITOR_LIBS} ${KDE_4_4_LIBS_NEEDED} ${KDE4_KNEWSTUFF3_LIBS} ${QT_QTSCRIPT_LIBRARY}
 )
 target_link_libraries(katepartinterfaces LINK_INTERFACE_LIBRARIES "${KDE4_KPARTS_LIBS}" )
 
@@ -257,8 +257,9 @@ kde4_add_plugin (katepart utils/katefactory.cpp)
 
 # link the part, use kate part interfaces + kde stuff
 target_link_libraries (katepart
-  ${KDE4_KDECORE_LIBS} ${KDE4_KPARTS_LIBS}
-  ${KDE4_KCMUTILS_LIBS} ${KDE4_KTEXTEDITOR_LIBS} ${QT_QTSCRIPT_LIBRARY} katepartinterfaces)
+  katepartinterfaces
+  ${KDE4_KCMUTILS_LIBS} ${KDE4_KTEXTEDITOR_LIBS} ${KDE4_KPARTS_LIBS} ${KDE4_KDECORE_LIBS}
+  ${QT_QTSCRIPT_LIBRARY})
 
 # install the part
 install (TARGETS katepart DESTINATION ${PLUGIN_INSTALL_DIR})
